<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      var arr = ['星期天', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六']
      for (i = 0; i < arr.length; i++) {
        console.log(arr[i])
      }
    </script>
  </body>
</html>
